package com.lxlg.lxlg_order.service.service;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lxlg.core.utils.Result;
import com.lxlg.lxlg_order.client.param.PayRechargeOrderForm;
import com.lxlg.lxlg_order.client.param.Score2MoneyForm;
import com.lxlg.lxlg_order.client.param.UserRechargeForm;
import com.lxlg.lxlg_order.client.result.RechargeOrderInfo;
import com.lxlg.lxlg_order.infra.model.RechargeVip;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author kevin
 * @since 2022-04-28
 */
public interface RechargeVipService extends IService<RechargeVip> {

    Result<RechargeOrderInfo> addRechargeOrder(UserRechargeForm userRechargeForm);

    void DoPay4RechargeOrder(PayRechargeOrderForm payRechargeOrderForm, HttpServletResponse resp) throws IOException;

    void rechargerPayBack(String orderNo);

    Result<String> doScore2Money(Score2MoneyForm score2MoneyForm) throws AlipayApiException;
}
